<include file="Public:header" />
<div class="container main">
    <include file="Public:left" />
    <div class="w790">
        <div class="h">
            <a href="{:U('add')}" class="btn btn-info">
                <i class="glyphicon glyphicon-plus"></i>添加节点
            </a>
            <a href="{:U('index',array('id'=>1))}" class="btn btn-default pull-right" style="margin-left:5px;">
                <i class="glyphicon glyphicon-usd"></i> 分销管理系统
            </a>
            <a href="{:U('index',array('id'=>414))}" class="btn btn-default pull-right">
                <i class="glyphicon glyphicon-cloud"></i> 积分管理系统
            </a>
        </div>
        <div class="table_">
            <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
                <thead>
                    <tr>
                        <td align="center">ID</td>
                        <td align="center">节点名称</td>
                        <td align="center">标题</td>
                        <td align="center">状态</td>
                        <td align="center">备注</td>
                        <td align="center">排序</td>
                        <td align="center">父级</td>
                        <td align="center">级别</td>
                        <td align="center">操作</td>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                        <tr class="data_list">
                            <td align="center"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" /></td>
                            <td style="text-indent:{$vo['cl']*10}px"><gt name="vo['cl']" value="0">|-</gt>
                                {$vo.name}</td>
                            <td>{$vo.title}</td>
                            <td><eq name="vo['status']" value="1">启用
                                    <else/>
                                    禁用</eq></td>
                            <td>{$vo.remark}</td>
                            <td align="center"><input name="sort" width="30" type="text" value="{$vo.sort}" size="4" /></td>
                            <td>{$vo.pid}</td>
                            <td><eq name="vo['level']" value="1">应用</eq>
                                <eq name="vo['level']" value="2">模块</eq>
                                <eq name="vo['level']" value="3">操作</eq></td>
                            <td align="center"><neq name="vo['level']" value="3">
                                    <a href="{:U('add', array('pid' => $vo['id'], 'level' => $vo['level']+1))}">
                                        添加子级
                                    </a>
                                    |</neq>
                                <a href="{:U('edit',array('id'=>$vo['id']))}">
                                    编辑
                                </a>
                                |
                                <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');">
                                    删除
                                </a></td>
                        </tr>
                    </volist>
                </tbody>
            </table>
            <div class="pages">
                <div class="controlList fl">
                    <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();">
                        <i class="glyphicon glyphicon-check"></i> 全选/反选
                    </a>
                    <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();">
                        <i class="glyphicon glyphicon-unchecked"></i> 全不选
                    </a>
                    <a class="btn btn-danger btn-sm" href="javascript:void(0);" onclick="delall();">
                        <i class="glyphicon glyphicon-trash"></i> 删除选中
                    </a>
                </div>
                <div class="fr">
                    {$pages}
                </div>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</div>
<include file="Public:footer" />